package GUItest;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

public class ChecksScreen extends JFrame {

	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					ChecksScreen frame = new ChecksScreen();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public ChecksScreen() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblPayToThe = new JLabel("Pay to:");
		lblPayToThe.setFont(new Font("Lucida Grande", Font.PLAIN, 15));
		lblPayToThe.setBounds(80, 73, 60, 23);
		contentPane.add(lblPayToThe);
		
		textField = new JTextField();
		textField.setBounds(152, 71, 134, 28);
		contentPane.add(textField);
		textField.setColumns(10);
		
		JButton btnBack = new JButton("Back");
		btnBack.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseReleased(MouseEvent e) {
				main_Screen main = new main_Screen();
				main.setVisible(true);
			}
		});
		btnBack.setBounds(6, 6, 117, 29);
		contentPane.add(btnBack);
		
		JLabel lblPrintChecks = new JLabel("Print Checks");
		lblPrintChecks.setFont(new Font("Lucida Grande", Font.PLAIN, 18));
		lblPrintChecks.setBounds(152, 22, 117, 37);
		contentPane.add(lblPrintChecks);
		
		JLabel lblAmmount = new JLabel("Amount:");
		lblAmmount.setFont(new Font("Lucida Grande", Font.PLAIN, 15));
		lblAmmount.setBounds(73, 118, 67, 16);
		contentPane.add(lblAmmount);
		
		textField_1 = new JTextField();
		textField_1.setColumns(10);
		textField_1.setBounds(152, 113, 134, 28);
		contentPane.add(textField_1);
		
		textField_2 = new JTextField();
		textField_2.setColumns(10);
		textField_2.setBounds(152, 153, 134, 28);
		contentPane.add(textField_2);
		
		JLabel lblMemo = new JLabel("Memo:");
		lblMemo.setFont(new Font("Lucida Grande", Font.PLAIN, 15));
		lblMemo.setBounds(79, 159, 61, 16);
		contentPane.add(lblMemo);
		
		JButton btnNewButton = new JButton("Print");
		btnNewButton.setFont(new Font("Lucida Grande", Font.PLAIN, 16));
		btnNewButton.setBounds(287, 203, 117, 57);
		contentPane.add(btnNewButton);
	}

}
